package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_LogisticsMethodItem", catalog="Id")
public class TccLogisticsMethodItem extends BaseEntity<TccLogisticsMethodItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="MethodId", nameJava="methodId", typeDataBase="bigint")
	private Long methodId;
	@YsField(nameDataBase="HeavySn", nameJava="heavySn", typeDataBase="decimal")
	private BigDecimal heavySn;
	@YsField(nameDataBase="HeavyEn", nameJava="heavyEn", typeDataBase="decimal")
	private BigDecimal heavyEn;
	@YsField(nameDataBase="Price", nameJava="price", typeDataBase="decimal")
	private BigDecimal price;
	@YsField(nameDataBase="LogisticsMethodType", nameJava="logisticsMethodType", typeDataBase="tinyint")
	private Integer logisticsMethodType;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccLogisticsMethodItem setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getMethodId() {
		return methodId;
	}
	public TccLogisticsMethodItem setMethodId(Long methodId) {
		this.methodId = methodId;
		return this;
	}
	public BigDecimal getHeavySn() {
		return heavySn;
	}
	public TccLogisticsMethodItem setHeavySn(BigDecimal heavySn) {
		this.heavySn = heavySn;
		return this;
	}
	public BigDecimal getHeavyEn() {
		return heavyEn;
	}
	public TccLogisticsMethodItem setHeavyEn(BigDecimal heavyEn) {
		this.heavyEn = heavyEn;
		return this;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public TccLogisticsMethodItem setPrice(BigDecimal price) {
		this.price = price;
		return this;
	}
	public Integer getLogisticsMethodType() {
		return logisticsMethodType;
	}
	public TccLogisticsMethodItem setLogisticsMethodType(Integer logisticsMethodType) {
		this.logisticsMethodType = logisticsMethodType;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccLogisticsMethodItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccLogisticsMethodItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccLogisticsMethodItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccLogisticsMethodItem tccLogisticsMethodItem(
		Long methodId,
		BigDecimal heavySn,
		BigDecimal heavyEn,
		BigDecimal price,
		Integer logisticsMethodType,
		Integer status
			) {
		TccLogisticsMethodItem entity = new TccLogisticsMethodItem();
		entity.setMethodId(methodId);
		entity.setHeavySn(heavySn);
		entity.setHeavyEn(heavyEn);
		entity.setPrice(price);
		entity.setLogisticsMethodType(logisticsMethodType);
		entity.setStatus(status);
		return entity;
	}
}